# #7-1 列表指定位置插入元素【组合数据类型】
# ls=["2","3","0","1","5"]
# s=input()
# i=int(input())
# ls.insert(i,s)
# # if i<=5:
# ls.append(s)
# print(ls)

# #7-2 列表排序【组合数据类型】
# s=input()
# l=len(s)
# k=[]
# for i in s:
#     k.append(i)
# k.sort()
# print(k)

# #7-3 与7无关的数【组合数据类型】
# def seven(num):
#     if num % 7 == 0:
#         return True
#     while num > 0:
#         if num % 10 == 7:
#             return True
#         num = num // 10
#     return False
# s=input()
# k=[]
# sum=0
# for i in range(int(s)):
#     if seven(i):
#         continue
#     else:
#         k.append(i)
#         if i<100:
#             sum+=i*i
# print(k)
# print(sum,end="")

#7-4 生成随机密码【组合数据类型】
from random import *
seed(0x1010)
str1= 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890!@#$%^&*'
excludes = ''
ls=[]
while len(ls) < 10:
    pwd = ''
    for i in range(10):
        pwd += choice(str1)
    if pwd[0] in excludes:
        continue
    else:
        ls.append(pwd)
        excludes += pwd[0]
for i in ls:
     print(i)





# #7-5 杨辉三角形【组合数据类型】
# def yh_triangle(rows):
#     triangle=[]
#     for i in range(rows):
#         row=[1]*(i+1)
#         if i >1:
#             for j in range(1, i):
#                 row[j] = triangle[i - 1][j - 1] + triangle[i - 1][j]
#         triangle.append(row)
#     for r in triangle:
#         for i in r:
#             print(i,end=" ")
#         print()
# s=10
# yh_triangle(s)

#7-6 分期付款计算器【组合数据类型】

# 等额本息还款公式:
# 每月还款额=贷款本金*月利率*(1+月利率)**总还款月数/((1+月利率)**总还款月数-1)
# 等额本金（AC）还款公式:
# 每月还款额=贷款本金/总还款月数+(贷款本金-累计已还款本金)*月利率
# price,month,mode,rate = float(input()),int(input()),input(),float(input())
# if mode == 'AC':
#     ls = []
#     for i in range(month):
#         repayment = price / month + (price - price / month * i) * rate
#         ls.append(round(repayment,2))
#     print(ls)
# elif mode == 'ACPI':
#     repayment = price * rate * (1 + rate) ** month /((1 + rate) ** month - 1)
#     print(round(repayment,2))
# else:
#     print('还款方式输入错误')
